package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitArticleClassRouter(Router *gin.RouterGroup) {
	ArticleClassRouter := Router.Group("articleClass").Use(middleware.JWTAuth()).Use(middleware.CasbinHandler()).Use(middleware.OperationRecord())
	{
		ArticleClassRouter.POST("createArticleClass", v1.CreateArticleClass)   // 新建ArticleClass
		ArticleClassRouter.DELETE("deleteArticleClass", v1.DeleteArticleClass) // 删除ArticleClass
		ArticleClassRouter.DELETE("deleteArticleClassByIds", v1.DeleteArticleClassByIds) // 批量删除ArticleClass
		ArticleClassRouter.PUT("updateArticleClass", v1.UpdateArticleClass)    // 更新ArticleClass
		ArticleClassRouter.GET("findArticleClass", v1.FindArticleClass)        // 根据ID获取ArticleClass
		ArticleClassRouter.GET("getArticleClassList", v1.GetArticleClassList)  // 获取ArticleClass列表
	}
}
